San Diego restaurants plan to reopen Thursday, after judge's ruling