President Joe Biden's foreign policy upended by Hamas attack