A rise in European defense spending in response to doubts about the reliability of the U.S. as an ally could push inflation higher, but tariffs might have the opposite effect, the ECB president said.