New York (CNN Business) The $2 trillion coronavirus stimulus bill passed by the Senate provides aid for average consumers and small businesses -- but there's also a lucrative tax break for wealthy real estate developers.

That's because the stimulus bill removes limits on the amount of losses that wealthy investors can use to offset taxes, by writing down the gradual depreciation of assets like real estate. Those limits were put into place as part of President Trump's 2017 tax reform bill.

Originally, the 2017 tax bill let wealthy investors use depreciation to offset the first $500,000 of capital gains from investments each year.

But according to an analysis from law firm Akin Gump Strauss Hauer & Feld, taxpayers "with unused losses arising in 2018, 2019 or 2020 that paid tax in one or more of the five preceding tax years will be able to immediately file amended returns."

Read More