Downing Street said the legislation was ready to return to Parliament after addressing concerns about its impact on spies.