Apple was reportedly working on the encryption feature two years ago but the FBI objected.