US president links deadly assault by Hamas to Putin's invasion of Ukraine, noting both receive Iranian support and 'want neighboring democracy completely annihilated'