The federal government’s planned $2 trillion economic rescue package includes financial aid for individuals and industries that are struggling to survive the coronavirus pandemic.

It also includes a potential bonanza for America’s richest real estate investors.

Senate Republicans inserted an easy-to-overlook provision on page 203 of the 880-page bill that would permit wealthy investors to use losses generated by real estate to minimize their taxes on profits from things like investments in the stock market. The estimated cost of the change over 10 years is $170 billion.

Under the existing tax code, when real estate investors generate losses from gradually writing down the value of their properties, a process known as depreciation, they can use some of those losses to offset other taxes. The result is that people can enjoy big tax breaks stemming from only-on-paper losses, even if they enjoy big cash profits in the real world.

But the use of those losses was limited by the 2017 tax-cut package. The losses could be used only to shelter the first $500,000 of a married couple’s nonbusiness income, such as capital gains from investments. Any leftover losses got rolled over to future years.