New Jersey gay therapy ban is upheld