The age to buy tobacco products across the country is now 21.

The measure was a part of a $1.4 trillion spending agreement to fund the federal government.

The law applies to cigarettes as well as vaping devices.

Companies like Juul and Altria, the maker of Marlboro cigarettes, were actually in support of the bill.

Many states had passed similar laws, including New York, which made the change last month.