Democratic governor Janet Mills hails ‘victory’ after legal battle over trans student athletes