Plans to build a specialist adult care home in a street in Wakefield have been approved, despite objections from residents living nearby.