Judge refuses to bar state from charging inmates for incarce