A federal judge in Boston overturned Trump administration regulations that sought to limit visa stays for foreign students and journalists. The…