NSW to trial crisis housing for homeless