There is no such thing as a "federal election"
Representatives and Senators are elected by the people in the states or districts they represent.
Presidents are elected by the Electoral College.
You are asking for a change in the Constitution, which takes more than Congress passing a law.