A federal judge has ruled Chris Gabehart can keep working at Spire Motorsports but only in a role unrelated to work he did as competition director at Joe Gibbs Racing.