That's exactly what he did -- charge two companies for 1 hour worked.
Even if he wasn't, he was a contractor, and checking code while being on site for another company was sus. Employment is "at will" in the US for the most part -- particularly contractors.