Arizona foster-care lawsuit can proceed as a class action, court says