Bolton have been given two weeks to settle their debts and avoid a winding-up order, a High Court hearing in London has ruled.