A Hartford-based attorney who spent $1.5 million on a custom-built home and luxury cars while failing to pay taxes for several years was sentenced by a federal judge to two years in prison, the U.S. Department of Justice announced on Thursday.