A US federal judge invalidated Trump administration policies that sought to limit study and work durations for foreign students and journalists. The…