North Norfolk District Council is to spend nearly £1.5m to buy six new homes to be used for temporary accommodation.