US will share tech to let South Korea build a nuclear-powered submarine, Trump says