A federal judge on Friday ordered Apple to loosen some of the rules on its App Store for how payments are processed.