JK Rowling has called on Sir Keir Starmer and other ministers to apologise after the Supreme Court ruled on the definition of a woman last week.