FBI allowed to keep secret details of iPhone hacking tool, court rules