WASHINGTON—The roughly $2 trillion stimulus package passed by Congress provides big-ticket relief to workers and businesses—and a lot of small favors to special interests.

Lawmakers used the opportunity of a must-pass bill to make a slew of policy changes that had gathered dust, some for years in a stagnant and divided Congress.

From streamlining the approval process for sunscreen ingredients to giving tax-preferred treatment to feminine-hygiene products, the package is blending emergency stimulus for the economy with small-bore alterations to federal law.

In a tweet on Friday, President Trump seemed to acknowledge the need for compromise, including allowing provisions not directly related to economic stimulus into the legislation to get it through a divided Congress.

“It is ‘HELL’ dealing with the Dems, had to give up some stupid things in order to get the ‘big picture’ done,” the president wrote on Twitter. “90% GREAT!”