Texans beat Cowboys in preseason finale