A federal judge in Washington on Friday approved a settlement between the U.S. Department of Justice and American Airlines and US Airways that will allow the airlines to proceed with their $11 billion merger.

The agreement will require the companies to give up takeoff and landing slots and gates at several major airports. The slots would be sold to low-cost carriers approved by the government.