Simona Halep looked to make a quick return to tennis following her ban, but Paula Badosa had other ideas, beating her in a thrilling three-set match.