Bed and breakfasts in Edinburgh have secured emergency approval to continue housing homeless people, despite concerns over the quality and safety of temporary accommodation.