A federal judge ruled that the Trump administration violated the Constitution when it sought to deport international students critical of Israel.