HANOI, Vietnam—Vietnam’s rubber-stamp parliament on Thursday elected Nguyen Xuan Phuc as prime minister, and he takes office at a time …