A US judge ruled that the Trump administration violated the Constitution by targeting foreign students for supporting Palestinians and criticizing the Israeli regime.