Council members have passed an ordinance at their meeting Tuesday night that prohibits the use of portable electronic devices while driving a vehicle in Sugar Land unless the device is in hands-free mode or being used for an emergency.