British Prime Minister Boris Johnson said China’s actions in Hong Kong risked “badly eroding” the protection of political freedoms enshrined in the Sino-British agreement.