French court approves spy bill