When the plaintiff pays to the defendant, within the time fixed therefor by the court, or, in case of the defendant's refusal to accept the payment, pays into court for the defendant's use the amount of the excess of the value of the improvements over the damages of the plaintiff, the plaintiff shall be entitled forthwith to a judgment and writ of possession.
D.C. Code § 16-1121