Japanese prime minister makes controversial shrine visit