A Rhode Island city has given first passage to a sweeping new ordinance that would ban racial profiling by police and establish strict controls on how to conduct traffic and pedestrian stops.