House passes farm bill preserving crop subsidies, slightly curbing food stamps