The House voted to pass the measure again on Wednesday, after a procedural snag forced members of the lower chamber to hold another vote on the bill

Originally, three provisions in the bill did not comply with the Byrd Rule, which governs what types of provisions the Senate may consider under the procedural budget window known as reconciliation.

Randy Frederick, vice president of trading and derivatives at Charles Schwab said the market believed it was "almost a near certainty" that the bill would pass. "The challenge was getting it passed through the Senate, and it did so with three votes to spare."

Stocks opened higher on Wednesday before pulling back. Investors have been eagerly waiting for lawmakers to move forward with the bill, sending the major stock indexes to record highs this year.

A rapid rise in interest rates also took some momentum off the stock market. The 10-year U.S. yield hit 2.5 percent, its highest level since March 20, while the two-year yield rose to its highest level since October 2008.

In corporate news, shares of FedEx rose 3.5 percent after the delivery giant's quarterly results surpassed estimates. Micron shares popped 4 percent as its earnings and revenue also beat expectations.

In economic news, weekly mortgage applications fell 4.9 percent, while existing home sales hit an 11-year high.

—CNBC's Jacob Pramuk contributed to this report