President Biden on Saturday signed legislation authorizing $40 billion in military and humanitarian aid for Ukraine while on his first trip to Asia.