Organisations that work with homeless people and give housing support to vulnerable are to benefit from £1.65 million of Scottish Government grant funding.