Male students in Ireland to get lower grades under law