The first daily tablet for long-term treatment of endometriosis has been approved for use on the NHS.