U.S. would let Apple keep software to help FBI hack iPhone