A Hong Kong court sentenced three Tiananmen vigil activists to five to seven years in prison under the national security law.