Much tougher restrictions on media in new law signed by president