The company’s successes are also showing up the agency’s failings