Dwindling UK sovereignty may push attorney general to back Brexit