King Charles was confronted by a protesting Australian senator in a ceremony at the country’s parliament.