These race tracks were permitted to operate slot machines until the regulatory process was completed. Six additional racing licenses were granted on September 27, 2006. The state filed suit and subsequently prevailed. The city attorney determined that state law took precedence over Philadelphians in the location of casinos. Going back to 2007, the Philadelphia City Council passed a resolution that allowed for a referendum that would have permitted the city to have a voice in the location of land-based casinos. The State of Pennsylvania prevailed in the following court case. Opponents to the lucrative ventures fought to block casino gambling in 2005 through a legal battle. Pennsylvania casinos have survived multiple challenges to their existence yet continue to thrive. Most of these casinos were located at race tracks that mainly featured horse racing as the major betting type until the mid-2000s gambling expansion. As at September 2022, all 14 are currently in operation. The new law allowed for 14 slot parlors across the state. In July 2004, Pennsylvania land-based casinos were legalized by the state legislature and the state introduced the newly defined Pennsylvania Gaming Laws.