In its first takings case decision in three years, the state Supreme Court has upheld a San Francisco law that regulates the conversion of residential hotel rooms to tourist use. In a 4-3 decision based largely on its 1996 Ehrlich decision, the court ruled that exactions that are part of a broad plan deserve deferential review, while ad hoc exactions are subject to much closer court scrutiny.