After Israel attacked Hamas leaders in Qatar, oil prices rose by more than 1.4%, and U.S. energy stocks followed suit