N.Y. Civil Practice Law & Rules § 8106
Costs upon a motion may be awarded to any party, in the discretion of the court, and absolutely or to abide the event of the action.