Launching a major attack alongside Israel against Iran, US President Donald Trump is pursuing a goal he once adamantly rejected.