American Airlines Group must end its alliance with JetBlue Airways Corp., a federal judge ruled on Friday, agreeing with the U.S. Justice Department that the arrangement means higher prices for consumers and ordering the companies to part ways within 30 days.