British Prime Minister Theresa May on Friday criticised U.S. Secretary of State John Kerry’s speech on peace in the Middle East as an attack on the Israeli government.

Although Kerry’s speech was in line with British policy, May said it was an inappropriate attack on the Israeli government that focused too heavily on settlement activity in the West Bank and East Jerusalem as a hurdle to achieving peace.

“We do not believe that it is appropriate to attack the composition of the democratically elected government of an ally,’’ the statement read from Downing Street.

“The government believes that negotiations will only succeed when they are conducted between the two parties, supported by the international community,’’ it said.

Kerry on Wednesday described Israeli Prime Minister Benjamin Netanyahu’s government as “the most right-wing in Israeli history’’.

The U.S. abstained, which allowed it to pass.

Netanyahu has said that he plans to work with U.S. president-elect Donald Trump to repeal the resolution.