Defence secretary suggests US President struck controversial energy deal under pressure from looming mid-term elections