My question involves criminal law for the state of: Kansas

The other day six police officers came to my house looking for my fiance because he had a warrant out for driving on a suspended license. I told the officers that he was not in the home even though he was. They proceeded to threaten me with all types of things such as towing my car due to the address of my car registration not matching the address of where I live and also for not having my address changed on my drivers license. The officers wanted to search my home, but I denied them and told them to get a search warrant. The officers called in the search warrant and then proceeded to detain me until they got the search warrant and searched the house. I finally gave in before they got the search warrant and admitted that he was in the house and told them they could search it. They went in and arrested my fiance and took him to jail. They proceeded to write me a ticket for obstruction of justice so now I have to go to court regarding this. I have never been in any kind of trouble with the law before. I know lying to the police was the wrong thing to do and I fully regret it, but I'm 7 months pregnant and my finace and I were due to find out the sex of our baby in a few days so of course I wanted to protect him from jail. I guess I didn't think about the consequences of my lying before I did it. Now I'm just wondering what is going to happen.