The policy would give immigration officers wide authority to deny green cards to people using public benefits.