Gov. Arnold Schwarzenegger has signed legislation into law that will pose harsher penalties for hospital workers who pry into sensitive patient data.