An Egyptian court upheld three-year prison sentences on Monday for three prominent activists charged with violating a controversial law restricting protests.