Terrorist gets life for plotting to blow up U.S. embassies