I don't recall anyone getting mad at the FBI hacking an iPhone.
What I think you're referring to is when "we all" got mad at the FBI for trying to force Apple to hack an iPhone. "We all" objected to the idea of a national government compelling a private company to invent new lock-picking tools.