The government is to investigate the takeover of Ultra Electronics, but its sale is unlikely to be stopped.