Tennessee lawmakers reach deal on business franchise tax in the final hours of session