The University of California at Berkeley defended its handling of sexual harassment complaints against a prominent astronomer amid accusations on campus and beyond that the professor was inadequately disciplined for inappropriate behavior with students.