If the president vetos a bill, it goes back to Congress where they can override the veto with 2/3rds majority. It will become law regardless of the president afterwards.