North Dakota abortion law costs state $245,000 in legal fees