The State Senate voted narrowly on Monday night to approve a bill that will afford undocumented immigrants an opportunity to obtain a driver’s license. The vote closely followed the bill’s passage in the Assembly, and Gov. Andrew Cuomo signed it into law soon after the Senate’s action.