Legality, Bureaucracy, and Class in the Welfare System