The publisher of the Mirror newspapers has made a court apology to the former Coronation Street actor Nikki Sanderson after admitting using private investigators to get stories about her.