Senator Robert Menendez of New Jersey has been charged in a federal corruption indictment, the authorities said on Friday.