A controversial scheme to convert two family homes to accommodate 16 people has been permitted by planning chiefs.