A council has pledged to increase the number of houses it owns so it can provide more people with affordable homes.