What does the court have the authority to do regarding the legal costs of a legal proceeding? 
The court has the authority to order that the prevailing party bear the legal costs, either in whole or in part, under certain circumstances.