'Gay marriage law may affect British royal family'