A US federal judge invalidated a Trump administration regulation that sought to limit the stay of international students and exchange visitors to…