A U.S. magistrate judge has ordered Apple to help the FBI break into an iPhone used by one of the two shooters in the San Bernardino attack in December.