A mortgage company can deduct nearly $7 million in corporate income for 2014, the U.S. Tax Court ruled Monday, affirming adjustments made to correct accounting errors tied to its warehouse-lending business.