Federal judge approves pact outlining sweeping changes for Ferguson police