Though to become a law, the president would need to sign it.
"The President might not sign the bill, however. If he specifically rejects the bill, called a veto, the bill returns to Congress. There it is voted on again, and if both houses of Congress pass the bill again, but this time by a two-thirds majority, then the bill becomes law without the President’s signature. This is called “overriding a veto,” and is difficult to do because of the two-thirds majority requirement."