The Trump administration’s inability to explain why numerous foreign students’ visa records were terminated has landed the federal government multiple losses in courtrooms across the country, with federal judges unwilling to presume the government had a good reason for the cancellations.