Mother wins landmark court ruling to stop child having private trans treatment