DONALD Trump has been barred from the House of Commons, after Speaker John Bercow said he would use his power to stop the controversial billionaire president from addressing Parliament.

When Barack Obama visited the UK in 2011, he delivered a speech to MPs and Lords in Westminster Hall, but Bercow said Trump’s racism, sexism and disrespect for the judiciary meant the new Commander-in-Chief would not be welcome.

The Speaker was applauded by opposition MPs. Tory sources said Bercow was “out of line” and could have damaged any post-Brexit trade deal with the US. Bercow, who was a Tory MP before being elected to the non-political but powerful role of Speaker, said he could not block the state visit, but would use his position as one of the “key-holders” to Westminster Hall to make sure the “earned honour” of an invite to address both Houses of Parliament was not extended to Trump.

The Speaker told MPs: “We value our relationship with the US. If a state visit takes place, that is way beyond the pay grade of the Speaker. However, as far as this place is concerned, I feel very strongly that our opposition to racism and to sexism and our support for equality before the law and an independent judiciary are important considerations in the House of Commons.” He added: “In relation to Westminster Hall, there are three key-holders ... the Speaker of the House of Commons, the Speaker of the House of Lords and the Lord Great Chamberlain, and ordinarily we are able to work by consensus and the hall would be used for a purpose such as an address, by agreement of the three key-holders.

“Before the imposition of the migrant ban, I would myself have been strongly opposed to an address by President Trump in Westminster Hall. After the imposition of the migrant ban by President Trump, I am even more strongly opposed [to] an address by President Trump in Westminster Hall.”

Government sources told The Guardian Bercow’s surprise statement was “hugely political and out of line”. One said: “Bercow better make sure of the president’s plan before he shoots off like this. The clear indications are that the White House are not even planning to address both houses of parliament.”

Other sources echoed the view that Trump was not interested in such engagements, and would much have “high-visibility visits with key members of the royal family.”

After Bercow made his surprise statement in the commons, Labour MP Dennis Skinner stood up to say: “Well done.”

Alex Salmond said it was about time someone in a position of power stood up to the President. “Well done to Speaker Bercow,” he said. People across the political spectrum have been waiting for somebody to show a bit of backbone against President Trump, not to be obsequious or to lay down before him like the Prime Minister has done.

“As Speaker, he is quite within his rights of course, this was to be an address from Westminster Hall and that is within the province of the Speaker.

“Speaker Bercow has made his declaration and I am right behind him. Four more years for Speaker Bercow.”

The leader of the Liberal Democrats, Tim Farron, said it was “the right decision” by Bercow. “The Prime Minister might wish to kowtow to the nasty misogynist that now sits in the Oval Office but no-one else does. We do not want him to speak to us. He is not welcome,” he said.

In 2015, both Houses of Parliament were addressed by Enrique Pena Nieto, the President of Mexico.