A federal court approved a settlement between the Justice Dept., American Airlines and US Airways, clearing the path for the airlines to merge.