The bill now goes to the president's desk for a signature.