US president says an Israeli strike 'would be inappropriate to do right now because we're very close to a solution.'