While taking part in WWI anniversary ceremonies, the U.S. president criticized the idea of a European military.