The $7,500 federal EV tax credit appears to have survived a close call in Congress this week.

According to Bloomberg, using statements by an unnamed Republican, the original proposal to scrap the credit, passed by the House of Representatives, was revived by the Senate in a compromising package. At the moment, each manufacturer can apply the credit to its first 200,000 qualifying cars sold, which no automaker has yet to reach.

Other energy-related items in the bill include language around wind production tax credits and the corporate alternative minimum tax.

Of all automakers, Tesla has absorbed the $7,500 credit the most, estimated to have been applied to roughly 127,000 vehicles. The company’s share price also appears to react heavily on tax credit news, with a rough 3 to 4-percent hit in early November, partly in response to the GOP’s proposed plan and production woes.

In the lead-up, many industry advocates vociferously opposed cutting the federal tax credit, with a series of initiatives urging Congress to reverse course. One saw a non-profit consortium of 50 clean technology companies, CALSTART, send a signed letter to Congress with details on how EVs spur job creation. Another group, Plug-in America, sought for Congress to increase the federal tax credit. Lastly, mayors from Los Angeles, Newark, Phoenix, San Francisco and other mid-sized hubs also sent letters to various committees, with support from environmental groups.

The tax plan is expected to be finalized by the end of next week with closing arguments in progress this week.