Supreme court curtails aid to illegals