Judge sides with AIDS Healthcare Foundation, dismisses suit