Rights can already taken away from people who are declared legally incompetent [1]. Similar procedures could be used to give rights to monkeys that can prove mental competence (e.g., are able to meaningfully communicate and show an understanding of money and property).
[1] https://www.law.cornell.edu/wex/incompetence#content