The United States and the European Union cut off direct aid to the Palestinian government earlier this year , after Hamas refused to renounce violence and recognize Israel .