Sri Lanka agrees port deals with China amid political chaos