Moore put on a united front with his wife at the court hearing despite being fired over an ‘inappropriate relationship’ with a staffer