Prominent Lebanese diplomat and judge Nawaf Salam on Monday won sweeping support from legislators, paving the way for him to become Lebanon’s new prime minister.