A federal judge will sentence former Sen. Bob Menendez on Wednesday for selling his office — an extraordinary fall even for a politician from a state as notoriously transactional as New Jersey.