The Langlands-Shahidi method over function fields and applications