US judge convicted of obstructing arrest of undocumented immigrant