In a stunning defeat for President Barack Obama on Thursday, the House passed a bill limiting Obama’s plan to resettle 10,000 Syrian refugees in New Orleans in 2016.

Obama had threatened to veto any such bill that crossed his desk. But that was before 47 of his own Democrats joined with all but 2 Republicans to pass the bill.

Senator Harry Reid says the bill is dead on arrival in the Senate. But if 47 Democrats say yay when the bill is voted on by the Senate, the bill will be veto-proof.

31 governors announced plans to block Obama’s attempt to relocate Syrian refugees into their states.

At the G-20 Summit in Antalya, Turkey on Monday, Obama mocked Republicans for suggesting he relocate more Christians than Muslims from Syria. Christians have been murdered by ISIS rebels for their Christian beliefs.

But Obama doesn’t see it for them.

“When individuals say that we should have a religious test and that only Christians — proven Christians — should be admitted — that’s offensive and contrary to American values,” said Obama.

But House Majority Leader Kevin McCarthy disagrees.

“It is against the values of our nation and the values of a free society to give terrorists the opening they are looking for by not tightening entry restrictions,” he said after the vote on Thursday.