The board voted 7-3 to approve the legislation, sponsored by Supervisor Tom Ammiano. Under the legislation, the city's police force would be directed to essentially ignore most marijuana offenses unless the crimes involve minors, acts of violence, sales on public property or driving under the influence. Police officials have said the legislation is consistent with department policy.