Union speaks out following legislation passed by the UK government making upskirting a criminal offence.