The measure is being praised as a "life-saving law” that has placed the state “on the right side of history.”