A Bangladesh court sentenced four extremists to hang Wednesday for their fatal machete attack on a celebrated writer, in a case that took nearly two decades to reach a verdict.…