WASHINGTON—The Senate on Tuesday rejected a Democratic plan to spend almost $500 billion on infrastructure using money raised by corporate tax increases, in a vote that displayed the sharp partisan divide over fiscal policy.

The vote, on an amendment to the fiscal 2016 budget resolution, was 45 in favor and 52 against, along strict party lines.

The...