Obama warns of 'consequences' over Iran strike