Councillors approved a 40-home social housing scheme in Trewern near Welshpool after road safety concerns were resolved.