Imperial Beach on Wednesday approved an ordinance to allow one recreational marijuana dispensary in the city.