The Queensland government has acted against the mayor of one of the state’s largest councils after months of controversy over his background.