A federal bankruptcy court approved the sale of the Dodgers to a group including Magic Johnson.