The American Academy of Pediatrics lost millions in grant funding amid its public clash with Robert Kennedy Jr.