Visit to Japanese war shrine irritates U.S