Garbine Muguruza battled to victory against Kim Clijsters, who was playing her first competitive match for more than seven years.