Illinois residents with terminal illnesses may choose to end their lives on their own terms under a law Gov. JB Pritzker has signed.