The Liberal Democrats party has lifted the restrictions on its internal gender critical group following a legal challenge.