The president, members of Congress and other federal workers will no longer be allowed to engage in insider trading.
President Obama is expected to sign the Stop Trading on Congressional Knowledge, or the STOCK Act, on Wednesday.
The bill is designed to send the message that lawmakers and other government officials are subject to the same insider trading laws as everyone else.
The measure also allows the public to see more of government officials' financial dealings.