RFK Jr. says in court filing that he’s endorsing Trump, ending his presidential hopes