California judge partly blocks gay conversion therapy ban