Between the lines: Even if Trump had declined to sign the bill, it would still likely have the two-thirds support in Congress necessary to override a veto. In a statement acknowledging the signing, Trump noted that certain aspects of the bill would "interfere" with his "constitutional authority to state the foreign policy of the United States."
Government does work sometimes.