Ecuador’s government acknowledged it had partly restricted internet access for Julian Assange, the founder of WikiLeaks.