Thousands of immigrants who are hoping the president’s controversial new executive order on immigration will allow them to stay in the country may soon have those hopes dashed as a federal judge ruled against the president yesterday, accusing him of making an unconstitutional end-run around Congress in drawing up the new law.